from django.db import models
from django.contrib.auth.models import User
import datetime

class WeixinUser(models.Model):
    """微信用户"""

    User = models.OneToOneField(User, on_delete=models.CASCADE)

    open_id = models.CharField("open_id", max_length=30, unique=True)
    create_at = models.DateField("create_at", default= datetime.datetime.now())

    class Meta:
        verbose_name= "微信用户"
        verbose_name_plural="微信用户"